/*
============================================================================
 Name        : BlockBengBeng.h
 Author      : 
 Version     :
 Copyright   : 
 Description : CBlockBengBeng declaration
============================================================================
*/

#ifndef BLOCKTIPLOGIN_H
#define BLOCKTIPLOGIN_H

// INCLUDES
//#include <e32std.h>
//#include <e32base.h>
//#include <badesca.h>
#include "Block.h"

//#include <BITSTD.H>

/**
*  CBlockBengBeng
* 
*/
class CBlockTipLogin : public CBlock
{
public:
	~CBlockTipLogin();

	static CBlockTipLogin* NewL();

	static CBlockTipLogin* NewLC();
	
public:
	//from CBlock
	/*TInt GetDataLength();

	TInt16 GetDataType();

	TBool ReadData(const TDesC8& aData);

	void WriteData(TDes8& aBuf);

	void StopSocket();*/
	
	void OnDraw(CWindowGc& gc) const;

	void OnKeyEvent(TInt keyCode);

	void SizeChanged();
	
	virtual void OnMouseDown(const TPoint& aPt);

	virtual void OnMouseUp(const TPoint& aPt);

private:
	void Transparent();

private:
	CBlockTipLogin();
	void ConstructL();

public:
	TBuf<8> m_strMainInfoTitle;
	TBuf<128> m_strMainInfoText;

private:
	CDesCArray* m_vMainInfoTitle;	
	CDesCArray* m_vMainInfoText;
	MOpenStatusObserver* iOpenStatusObserver;
	
	CFbsBitmap* iCheck;
	CFbsBitmap* iCheck_MM;
	CFbsBitmapDevice* iOffScreenBitmapDevice;
	CFbsBitGc* iOffScreenBitmapGc;
	
	TBuf<4> 	m_strCenter;
	
	mutable TRect iLeftButtonRect;
	mutable TRect iCenterButtonRect;
	mutable TRect iRightButtonRect;
	TBool iLeftButtonPress;
	TBool iCenterButtonPress;
	TBool iRightButtonPress;
	
	TInt iFouceButton;
};

#endif // BlockBengBeng_H
